package com.shiguiwu.springmybatis.javabase.asserts;

import cn.hutool.core.lang.Assert;

import java.util.Date;
import java.util.List;
import java.util.Optional;

/**
 * @description: 断言
 * @author: stone
 * @date: Created by 2022/12/1 16:40
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.asserts
 */
public class AssertTests {

    public static void main(String[] args) {


        //Assert.notNull(null, () -> new RuntimeException("不能为null"));

        boolean f = true;
        Assert.isFalse(f, () -> new RuntimeException("断言是false"));


    }
}
